package com.example.springlearn.service.impl;

import com.example.springlearn.bean.HelloBean;
import com.example.springlearn.mapper.HelloMapper;
import com.example.springlearn.service.HelloService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HelloServiceImpl implements HelloService {

    @Resource
    HelloMapper helloMapper;

    @Override
    public HelloBean getHelloBean(Integer id) {
        return helloMapper.getHelloBean(id);
    }

    @Override
    public List<HelloBean> getAllHelloBean() {
        return helloMapper.getAllHelloBean();
    }
}
